TileDownloader

A [class@Shumate.DataSource] that asynchronously downloads tiles from an online service using a given template.

It contains an internal [class@Shumate.FileCache] to cache the tiles on the system.

Constructors

this
this(ShumateTileDownloader* shumateTileDownloader, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string urlTemplate)

Creates a new [class@TileDownloader] that fetches tiles from an API and caches them on disk.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getTileDownloaderStruct
ShumateTileDownloader* getTileDownloaderStruct(bool transferOwnership)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

shumateTileDownloader
ShumateTileDownloader* shumateTileDownloader;

the main Gtk struct

Inherited Members

From DataSource

shumateDataSource
ShumateDataSource* shumateDataSource;

the main Gtk struct

getDataSourceStruct
ShumateDataSource* getDataSourceStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getTileDataAsync
void getTileDataAsync(int x, int y, int zoomLevel, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Gets the data for the tile at the given coordinates.

getTileDataFinish
Bytes getTileDataFinish(AsyncResultIF result)

Gets the final result of a request started with shumate_data_source_get_tile_data_async().

addOnReceivedData
gulong addOnReceivedData(void delegate(int, int, int, Bytes, DataSource) dlg, ConnectFlags connectFlags)

Emitted when data is received for any tile. This includes any intermediate steps, such as data from the file cache, as well as the final result.

Meta